import Vue from 'vue'

export default {
  searchCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectfoodcategory,config).then(r=>{
      callback(r.data);
    });
  },
  delFoodCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delfoodcategory,config).then(r=>{
      callback(r.data);
    });
  },
  delFoodCategoryAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delfoodcategoryall,config).then(r=>{
      callback(r.data);
    });
  },
  addFoodCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.addfoodcategory,config).then(r=>{
      callback(r.data);
    });
  },
  editFoodCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.editfoodcategory,config).then(r=>{
      callback(r.data);
    });
  },
}